#ifndef PROGRESS_EXAMPLE_H
#define PROGRESS_EXAMPLE_H

#include <QWidget>

class QProgressBar;
class QPushButton;
class QLabel;
class QTimer;

class ProgressExample : public QWidget
{
    Q_OBJECT

public:
    explicit ProgressExample(QWidget* parent = nullptr);

private slots:
    void startProgress();
    void resetProgress();
    void updateProgress();

private:
    void setupUI();
    void setupConnections();

    QProgressBar* progressBar;
    QPushButton* startButton;
    QPushButton* resetButton;
    QLabel* statusLabel;
    QTimer* timer;
    int currentProgress;
};

#endif // PROGRESS_EXAMPLE_H